export default {
  namespaced:true,
  state:{
    address:JSON.parse(uni. getStorageSync('addr')||'{}')
  },
  mutations:{
    getAddr(state,addr){
     state.address=addr
     this.commit ('myUser/saveAddr')
    },
    saveAddr(state){
      uni.setStorageSync('addr',JSON.stringify(state.address))
    }
  },
  getters:{
    getaddrdetial(state){
      return state.address.provinceName+state.address.cityName+state.address.countyName+state.address.detailInfo
    }
  }
}